package com.wk.config;


public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer code;//错误码

    public BusinessException(){}

    public BusinessException(ResultEnum resultEnum){
        super(resultEnum.getMsg());

    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
